package com.ruoyi.wq.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.mybatis.base.BaseEntity;

/**
 * 用户访客记录对象 wq_user_visit
 * 
 * @author ruoyi
 * @date 2022-09-26
 */
public class WqUserVisit extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.UUID)
    private String id;

    /** 访客ID */
    @Excel(name = "访客ID")
    private Long visitUserId;

    /** 访客头像 */
    @Excel(name = "访客头像")
    private String visitAvatar;

    /** 访客昵称 */
    @Excel(name = "访客昵称")
    private String visitNickName;

    /** 访客性别（0男 1女 2未知） */
    @Excel(name = "访客性别", readConverterExp = "0=男,1=女,2=未知")
    private String visitSex;
    
    /** 城市 */
    private String city;
    
    private String lon;
    
    private String lat;
    
    /** 访问次数 */
    private Integer visitNum;

    /** 访客年龄 */
    @Excel(name = "访客年龄")
    private Integer visitAge;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setVisitUserId(Long visitUserId) 
    {
        this.visitUserId = visitUserId;
    }

    public Long getVisitUserId() 
    {
        return visitUserId;
    }
    public void setVisitAvatar(String visitAvatar) 
    {
        this.visitAvatar = visitAvatar;
    }

    public String getVisitAvatar() 
    {
        return visitAvatar;
    }
    public void setVisitNickName(String visitNickName) 
    {
        this.visitNickName = visitNickName;
    }

    public String getVisitNickName() 
    {
        return visitNickName;
    }
    public void setVisitSex(String visitSex) 
    {
        this.visitSex = visitSex;
    }

    public String getVisitSex() 
    {
        return visitSex;
    }
    public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getLon() {
		return lon;
	}

	public void setLon(String lon) {
		this.lon = lon;
	}

	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	public Integer getVisitNum() {
		return visitNum;
	}

	public void setVisitNum(Integer visitNum) {
		this.visitNum = visitNum;
	}

	public void setVisitAge(Integer visitAge) 
    {
        this.visitAge = visitAge;
    }

    public Integer getVisitAge() 
    {
        return visitAge;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("visitUserId", getVisitUserId())
            .append("visitAvatar", getVisitAvatar())
            .append("visitNickName", getVisitNickName())
            .append("visitSex", getVisitSex())
            .append("visitAge", getVisitAge())
            .append("userId", getUserId())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
